{{include file='header.htm' title='编辑相片'}}

<script type="text/javascript">
    <!--
    
    $(function () {
        $('textarea.limited').maxlength({
            'feedback' : '.charsLeft', 
			'useInput' : true
        });
        $('input.limited').maxlength({
            'feedback' : '.charsLeft2' 
        });
    });
    
    //-->
</script>

<DIV id=content>
	<DIV id=heading>
		<H1>编辑相片</H1>
		<DIV class=clear></DIV>
	</DIV>
	<DIV class=clear></DIV>
	<DIV id=leftWrapper>
		<DIV id=container>
			<DIV id=main>
				<FORM id=album_form name=createalbum action=index.php?m=photo&a=edit method=post>
				<DL>
  			<DT>标题 
  			<DD><input class='txt limited' id=album_title size=30 maxlength=40 name=title value={{$photodata.title}} >
  				<br />还可以输入 <span class="charsLeft2">40</span> 个字符
  			<DT>描述 
  			<DD>
        <textarea id=album_description name=pdescription rows=5 cols=27 class="limited">{{$photodata.pdescription}}</textarea>
        <input type="hidden" name="maxlength" value="200" />
        	<br />还可以输入 <span class="charsLeft">200</span> 个字符
  			</DD>
  			<DD
  			</DD>
  			</DL>
				<DL>
  			<DT> 
  			<DD class=submit>
  				<INPUT type=hidden name=submitted value=true>
  				<INPUT type=hidden name=photoid value={{$photodata.photo_id}}>
  				<INPUT class=Btn id=submit type=submit value=保存> <SPAN>(or <A class=cancel href="index.php?m=photo&a=photo_view&photoid={{$photodata.photo_id}}">Cancel</A>)</SPAN> 
				</DD>
				</DL>
				</FORM>
			</DIV>
			<DIV id=sidebar>
				<DIV class=inner>
					<H3>»<A href="index.php?m=album&a=albumlist">我的相册</A></H3>
					<H3>»<A href="index.php?m=photo&a=upload">上传照片</A></H3>
				</DIV>
			</DIV>
		</DIV>
		<DIV class=clear></DIV>
	</DIV>
</DIV>
	{{include file='footer.htm'}}
